{{include file='header.inc.html'}}
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var ct_url = '{{url controller="posts" action="checktags"}}';
//--><!]]>
</script>
    <div id="inner-wrap" class="clear_both">
        <h2 id="im-here">Edit Post</h2>
        <form method="post" action="{{url controller='posts' action='savepost'}}" class="form" name="form01" id="form01">
            <div id="box" class="clear_both">
                <div id="inner-box">
                    <div id="content">
                        <p>{{webcontrol type='textbox' name='title' value=''}}</p>
                        <p>{{webcontrol type='textbox' name='slug' value='Permanent link' onclick='if(this.value=="Permanent link"){this.value="";}'}}</p>
                        <p>{{webcontrol type='memo' name='memo' value='' rows='15'}}</p>
                        <div class="nbox">
                            <h3><span><a href="#" class="reload" id="autocheck">Auto Check</a></span>Tags</h3>
                            <div class="note">{{webcontrol type='textbox' name='tags' value=$form.tags}}</div>
                            <div id="checktags" style="display:none"></div>
                        </div>
                        <div class="nbox mtop">
                            <h3>SEO Pack</h3>
                            <div class="note">
                                <table class="all_w">
                                    <tr>
                                        <td width="80" class="tr">Keywords: </td>
                                        <td>{{webcontrol type='textbox' name='keyword' value=''}}</td>
                                    </tr>
                                    <tr>
                                        <td class="tr">Description: </td>
                                        <td>{{webcontrol type='memo' name='description' value='' rows='2' class='description'}}</td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="sidebar">
                    <div class="sidebar">
                        <h3>Comment</h3>
                        <div class="note">
						<select name="comment_status" id="comment_status" class="all_w">
							<option value="open" >Open</option>
							<option value="close" >Close</option>
						</select>
                        </div>
                    </div>
                    <div class="sidebar">
                        <h3>Publish</h3>
                        <div class="note clear_both">{{webcontrol type='submit' name='publish' value='Publish' class='fr'}}{{webcontrol type='submit' name='save' value='Save Draft' onclick='$("#status").val("draft")'}}</div>
                    </div>
                    <div class="sidebar">
                        <h3>Categries</h3>
                        <div class="note">
                        	{{webcontrol type='listbox' name='cate_id' size='10' class='all_w cate_list' items=$cates}}
                        </div>
                    </div>
                </div>
            </div>
            {{webcontrol type='hidden' name='status' value='publish'}}
        </form>
    </div>
{{include file='footer.inc.html'}}
